//
//  UIViewController+BackButtonHandler.h
//  LPTClient
//
//  Created by mac on 2018/12/17.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol BackButtonHandlerProtocol <NSObject>

@optional

// 重写下面的方法以拦截导航栏返回按钮点击事件，返回 YES 则 pop，NO 则不 pop
-(BOOL)navigationShouldPopOnBackButton;

@end

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (BackButtonHandler)<BackButtonHandlerProtocol>

@end

@interface UINavigationController (ShouldPopOnBackButton)

@end

NS_ASSUME_NONNULL_END
